<?php
class Tag
{	
	public $word;
	public $score;
	public $searched;
	
	public function __construct($word, $score)
	{
		$this->word = $word;
		$this->score = $score;
		$this->searched = 0;
	}
	
	static function compare($a, $b)
	{
		if($a->score == $b->score)
			return 0;
		
		return ($a->score > $b->score) ? -1 : +1;
	}
}
?>
